<!--
<h1>Posts#index</h1>
<p>Find me in app/views/posts/index.html.erb</p>
-->
<h1> Nuestro Blog </h1>

<% @posts.each do |post| %>
  <h2><%= link_to post.title, post %></h2>
  <p> <%= post.content %> </p>
  <p> <%= link_to "Editar", edit_post_path(post) %> | 
    <%= link_to "Borrar", post, :confirm => "Estas seguro?", :method => :delete %>
  </p>
  <hr />
<% end %> 
<p><%= link_to "Agregar nuevo post", new_post_path %></p>